package com.syh.jn.scm.domain.upstream.entity.finance;

import com.syh.core.ddd.domain.DomainEvent;
import com.syh.jn.scm.domain.supplier.entity.finance.StatementAccountBill;

public class UpSalesInvoiceEvent extends DomainEvent<StatementAccountBill> {

  public static final String UP_SALES_INVOICE_CREATED = "upSalesInvoiceCreated";
  public static final String UP_SALES_INVOICE_DESTROY = "upSalesInvoiceDestroy";

  public static UpSalesInvoiceEvent buildCreated(Object[] values) {
    UpSalesInvoiceEvent stateEvent = new UpSalesInvoiceEvent();
    stateEvent.eventName = UP_SALES_INVOICE_CREATED;
    stateEvent.values = values;
    return stateEvent;
  }


  public static UpSalesInvoiceEvent buildDestroy(Object[] values) {
    UpSalesInvoiceEvent stateEvent = new UpSalesInvoiceEvent();
    stateEvent.eventName = UP_SALES_INVOICE_DESTROY;
    stateEvent.values = values;
    return stateEvent;
  }

}
